package com.mars.module.admin.service;

import com.mars.common.response.PageInfo;
import com.mars.common.result.R;
import com.mars.module.admin.entity.SysHouse;
import com.mars.module.admin.request.SysHouseRequest;

import java.util.List;

/**
 * 房屋信息接口
 *
 * @author mars
 * @date 2024-01-23
 */
public interface ISysHouseService {
    /**
     * 新增
     *
     * @param param param
     * @return SysHouse
     */
    SysHouse add(SysHouseRequest param);

    /**
     * 删除
     *
     * @param id id
     * @return boolean
     */
    boolean delete(Long id);

    /**
     * 批量删除
     *
     * @param ids ids
     * @return boolean
     */
    boolean deleteBatch(List<Long> ids);

    /**
     * 更新
     *
     * @param param param
     * @return boolean
     */
    boolean update(SysHouseRequest param);

    /**
     * 查询单条数据，Specification模式
     *
     * @param id id
     * @return SysHouse
     */
    SysHouse getById(Long id);

    /**
     * 查询分页数据
     *
     * @param param param
     * @return PageInfo<SysHouse>
     */
    PageInfo<SysHouse> pageList(SysHouseRequest param);


    /**
     * 查询所有数据
     *
     * @return List<SysHouse>
     */
    List<SysHouse> list(SysHouseRequest param);

    R publish(Long[] ids) ;
    R offShelf(Long[] ids);
}
